home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
othergnu
/
scm4b2.zoo
/
diffs
next >
Wrap
Text File
|
1993-02-22
|
6KB
|
261 lines
RCS file: /net/acae127/home/bammi/etc/src/master/atari/scm/config.h,v
retrieving revision 1.3
diff -c -r1.3 config.h
*** 1.3 1993/02/19 21:14:13
--- config.h 1993/02/21 04:45:44
***************
*** 34,39 ****
--- 34,42 ----
# define unix
# define STDC_HEADERS
#endif
+ #ifdef __hpux
+ # define unix 1
+ #endif
#ifdef IO_EXTENSIONS
# ifdef unix
/* DJGPP (gcc for i386) defines unix! */
***************
*** 41,46 ****
--- 44,52 ----
# define HAVE_PIPE
# endif
# endif
+ # ifdef __MINT__ /* atarist + MiNT */
+ # define HAVE_PIPE
+ # endif
#endif
/* If your scheme code runs under this program without any errors you
***************
*** 279,285 ****
in programs. in both cases sparate characters with ":case " */
#define LINE_INCREMENTORS '\n'
! #ifdef MSDOS
#define WHITE_SPACES ' ':case '\t':case '\r':case '\f':case 26
#else
#define WHITE_SPACES ' ':case '\t':case '\r':case '\f'
--- 285,291 ----
in programs. in both cases sparate characters with ":case " */
#define LINE_INCREMENTORS '\n'
! #if defined(MSDOS) || defined(atarist)
#define WHITE_SPACES ' ':case '\t':case '\r':case '\f':case 26
#else
#define WHITE_SPACES ' ':case '\t':case '\r':case '\f'
***************
*** 461,467 ****
/* If stacks grow up then */
/* #define STACK_GROWS_UP */
! #ifdef hp9000s800
#define STACK_GROWS_UP
#endif
#ifdef pyr
--- 467,473 ----
/* If stacks grow up then */
/* #define STACK_GROWS_UP */
! #if defined(hp9000s800) || defined(__hp9000s700) || defined(__hp9000s800) || defined(__hppa)
#define STACK_GROWS_UP
#endif
#ifdef pyr
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/scm/repl.c,v
retrieving revision 1.3
diff -c -r1.3 repl.c
*** 1.3 1993/02/19 21:14:31
--- repl.c 1993/02/21 04:45:51
***************
*** 261,268 ****
--- 261,270 ----
#ifndef MSDOS
# ifndef __EMX__
# ifndef _DCC
+ # ifndef atarist
else if (isatty(fileno(STREAM(exp))))
lputs(ttyname(fileno(STREAM(exp))),f);
+ # endif
# endif
# endif
#endif
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/scm/scm.c,v
retrieving revision 1.3
diff -c -r1.3 scm.c
*** 1.3 1993/02/19 21:14:38
--- scm.c 1993/02/21 04:45:53
***************
*** 102,108 ****
wta(UNDEFINED,(char *)SEGV_SIGNAL,"");
}
#endif
! #ifdef atarist
# undef SIGALRM /* only available via MiNT libs */
#endif
#ifdef GO32
--- 102,108 ----
wta(UNDEFINED,(char *)SEGV_SIGNAL,"");
}
#endif
! #if defined(atarist) && !defined(__MINT__)
# undef SIGALRM /* only available via MiNT libs */
#endif
#ifdef GO32
***************
*** 337,343 ****
--- 337,345 ----
#ifndef GO32
# ifndef _DCC
# if (__TURBOC__ != 1)
+ # ifndef atarist
if (isatty(fileno(stdin))) setbuf(stdin,0); /* turn off stdin buffering */
+ # endif
# endif
# endif
#endif
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/scm/subr.c,v
retrieving revision 1.3
diff -c -r1.3 subr.c
*** 1.3 1993/02/19 21:14:43
--- subr.c 1993/02/21 04:45:54
***************
*** 334,340 ****
#endif
return MAKINUM(x);
}
! SCM quotient(x,y)
SCM x,y;
{
register long z;
--- 334,340 ----
#endif
return MAKINUM(x);
}
! SCM Quotient(x,y)
SCM x,y;
{
register long z;
***************
*** 541,547 ****
}
d = lgcd(n1,n2);
if (INUM0==d) return d;
! return absval(product(n1,quotient(n2,d)));
}
SCM logand(n1,n2)
--- 541,547 ----
}
d = lgcd(n1,n2);
if (INUM0==d) return d;
! return absval(product(n1,Quotient(n2,d)));
}
SCM logand(n1,n2)
***************
*** 606,613 ****
if(cnt < 0) {
res = intexpt(MAKINUM(2),MAKINUM(-INUM(cnt)));
if NFALSEP(negativep(n))
! return sum(MAKINUM(-1),quotient(sum(MAKINUM(1),n),res));
! else return quotient(n,res);
}
else return product(n,intexpt(MAKINUM(2),cnt));
#else
--- 606,613 ----
if(cnt < 0) {
res = intexpt(MAKINUM(2),MAKINUM(-INUM(cnt)));
if NFALSEP(negativep(n))
! return sum(MAKINUM(-1),Quotient(sum(MAKINUM(1),n),res));
! else return Quotient(n,res);
}
else return product(n,intexpt(MAKINUM(2),cnt));
#else
***************
*** 1437,1443 ****
{s_member,member},
{s_assq,assq},
{s_assoc,assoc},
! {s_quotient,quotient},
{s_remainder,lremainder},
{s_modulo,modulo},
{s_ash,ash},
--- 1437,1443 ----
{s_member,member},
{s_assq,assq},
{s_assoc,assoc},
! {s_quotient,Quotient},
{s_remainder,lremainder},
{s_modulo,modulo},
{s_ash,ash},
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/scm/sys.c,v
retrieving revision 1.3
diff -c -r1.3 sys.c
*** 1.3 1993/02/19 21:14:45
--- sys.c 1993/02/21 04:45:56
***************
*** 63,71 ****
|| strchr(CHARS(modes),'+') )?tc_outport:0)));
SETSTREAM(z,f);
#ifndef MSDOS
! # ifdef FIONREAD
if (inp && isatty(fileno(f))) SYSCALL(setbuf(f,0););
/* turn off input buffering for ttys */
# endif
#endif
}
--- 63,73 ----
|| strchr(CHARS(modes),'+') )?tc_outport:0)));
SETSTREAM(z,f);
#ifndef MSDOS
! # ifndef atarist
! # ifdef FIONREAD
if (inp && isatty(fileno(f))) SYSCALL(setbuf(f,0););
/* turn off input buffering for ttys */
+ # endif
# endif
#endif
}
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/scm/time.c,v
retrieving revision 1.3
diff -c -r1.3 time.c
*** 1.3 1993/02/19 21:14:46
--- time.c 1993/02/21 04:45:58
***************
*** 46,51 ****
--- 46,55 ----
# include <sys/types.h>
# include <sys/times.h>
# endif
+ # ifdef __hpux
+ # include <sys/types.h>
+ # include <sys/times.h>
+ # endif
#else
# ifdef SVR2
# include <time.h>
***************
*** 77,83 ****
#endif
#ifdef atarist
# define LACK_FTIME
! # define LACK_TIMES
#endif
#ifdef MSDOS
# ifndef GO32
--- 81,89 ----
#endif
#ifdef atarist
# define LACK_FTIME
! # ifndef __GNUC__
! # define LACK_TIMES
! # endif
#endif
#ifdef MSDOS
# ifndef GO32